﻿<%@ Page Language="C#" MasterPageFile="~/MasterPage_User.master" AutoEventWireup="true" CodeFile="TimHSX.aspx.cs" Inherits="TimHSX" Title="Untitled Page" %>

<%@ Register assembly="CollectionPager" namespace="SiteUtils" tagprefix="cc1" %>

<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
    <table cellpadding="0" cellspacing="0" class="style5">
        <tr>
            <td>
                <asp:DataList ID="DataList1" runat="server" BorderColor="Black"
                        DataKeyField="MaPhim" RepeatColumns="4" 
                    onitemcommand="DataList1_ItemCommand">
                    <ItemTemplate>
                        <table cellpadding="0" cellspacing="0" class="style3">
                            <tr>
                                <td>
                                    <asp:HyperLink ID="hlHinh" runat="server" 
                            ImageUrl='<%# Eval("HinhAnh","~/Pictures/CD/{0}") %>' 
                            NavigateUrl='<%# Eval("MaPhim","ChiTietPhim.aspx?idcd={0}") %>'>[hlHinh]</asp:HyperLink>
                                </td>
                            </tr>
                            <tr>
                                <td>
                                    <asp:HyperLink ID="hlChiTiet" runat="server" NavigateUrl='<%# Eval("MaPhim","ChiTietPhim.aspx?idcd={0}") %>' 
                            Text='<%# Eval("TenPhim") %>' Font-Underline="False" ForeColor="#3399FF"></asp:HyperLink>
                                </td>
                            </tr>
                            <tr>
                                <td>
                                    <asp:Label ID="lbGia" runat="server" 
                            Text='<%# Eval("GiaThue","{0:#,###}") %>'></asp:Label>
                        &nbsp;VNĐ</td>
                            </tr>
                            <tr>
                                <td>
                                    <asp:LinkButton ID="lbThue" runat="server" 
                            CommandArgument='<%# Eval("MaPhim") %>' CommandName="thue" Font-Underline="False" 
                            ForeColor="#3399FF">Thuê</asp:LinkButton>
                                </td>
                            </tr>
                        </table>
                    </ItemTemplate>
                </asp:DataList>
            </td>
        </tr>
        <tr>
            <td>
                    <cc1:CollectionPager ID="CollectionPager1" runat="server" LabelText="" 
                        ResultsFormat="" BackText="« Lùi" NextText="Tiếp »" PageSize="8" 
                    SectionPadding="10" SliderSize="5">
                    </cc1:CollectionPager>
                </td>
        </tr>
    </table>
</asp:Content>

